// strtype2.cpp –- assigning, adding, and appending
#include <iostream>
#include <string> // make string class available
#include <cstring>
int main_strtype2()
{
    using namespace std;
    char chars[20];
    cout << "Length of the undefined chars: " << strlen(chars) << endl;
    cout << "Please input the chars:" << endl;
    cin.getline(chars,20);
    cout << "Length of the inputed chars: " << strlen(chars) << endl;

    string aString;
    cout << "please input a string object to stroe it:" << endl;
    getline(cin,aString);
    cout << "the string you input is: " << aString << endl;
    return 0;
}
